A Proof Theoretical Account of Continuation Passing Style
نویسنده
چکیده
We study “classical proofs as programs” paradigm in CallBy-Value (CBV) setting. Specifically, we show the CBV normalization for CND (Parigot 92) can be simulated by the cut-elimination procedure for LKQ (Danos-Joinet-Schellinx 93), namely the q-protocol. We use proof-term assignment system to prove this fact. The term calculus for CND we use follows Parigot’s λμ-calculus with new CBV normalization procedure. A new term calculus for LKQ is presented as a variant of λ-calculus with a let-construct. We then define a translation from CND into LKQ and prove simulation theorem. We also show the translation we use can be thought of a familiar CBV CPS-translation without translation on types. keywords: Classical Logic, Classical Natural Deduction, LKQ, CallBy-Value, CPS-translation, classical proof theory.
منابع مشابه
A proof theoretical approach to Continuation Passing Style
In this paper we study the relation with continuation passing style(CPS) and classical proofs, proof theoretically. There is two style of CPS translation { Call by name (CBN) and Call by value(CBV). We revealed that in the case of classical proofs, this two reduction strategy may induce di erent result even if the language is purely functional(i.e. proof theoretical). We explain this through th...
متن کاملThe Occurrence of Continuation Parameters in Cps Terms
We prove an occurrence property about formal parameters of continuations in Continuation-Passing Style (CPS) terms that have been automatically produced by CPS transformation of pure, call-by-value-terms. Essentially, parameters of continuations obey a stack-like discipline. This property was introduced, but not formally proven, in an earlier work on the Direct-Style transformation (the inverse...
متن کاملOn proving syntactic properties of CPS
Higher-order program transformations raise new challenges for proving properties of their output, since they resist traditional, rst-order proof techniques. In this work, we consider (1) the \one-pass" continuation-passing style (CPS) transformation, which is second-order, and (2) the occurrences of parameters of continuations in its output. To this end, we specify the one-pass CPS transformati...
متن کاملContinuation-Passing-Style as an Intermediate Representation for Compiling Scheme
This paper describes the implementation of a small experimental Scheme compiler, using Continuation Passing Style (C P S ) as an intermediate representation for the source code. CPS is a form of code that makes control flow and control information explicit. This, in combination with a solid theoretical basis (lambda-calculus) makes it an excellent medium for representing intermediate code.
متن کاملA Simple Correctness Proof of the Direct-Style Transformation
We build on Danvy and Nielsen’s first-order program transformation into continuation-passing style (CPS) to present a new correctness proof of the converse transformation, i.e., a one-pass transformation from CPS back to direct style. Previously published proofs were based on CPS transformations that were either higher-order, noncompositional, or operating in two passes, and were correspondingl...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2002